package com.zj.HJ;

import java.util.Scanner;

public class HJ77 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
//        getRes(num);
    }

    public static void getRes(int num, int[] seq) {
        if (num == 1) {
            System.out.println(1);
        }
        if (num == 2) {
            System.out.println(1 + " " + 2);
            System.out.println(2 + " " + 1);

        }
        if (num == 3) {
            System.out.println(1 + " " + 2 + " " + 3);
            System.out.println(2 + " " + 1 + " " + 3);

        }
    }
}
